﻿<%@ Page Title="" Language="C#" MasterPageFile="~/source/masterpage/base.Master"
    AutoEventWireup="true" CodeBehind="SupplierManagement.aspx.cs" Inherits="QLK.Web.SupplierManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="margin-left: 10px">
        <asp:Button ID="btnAdd" runat="server" Text="Add" Width="100px" OnClick="btnAdd_Click" />
        <asp:GridView ID="GridSupplier" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%=_iStt++%></ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="SupplierName" HeaderText="SupplierName" />
                <asp:BoundField DataField="Address" HeaderText="Address" />
                <asp:BoundField DataField="PhoneNumber" HeaderText="PhoneNumber" />
                <asp:TemplateField HeaderText="Edit">
                    <ItemTemplate>
                        <asp:ImageButton ID="imgEdit" runat="server" CommandArgument="<%# Eval(QLK.Database.Columns.SupplierID) %>"
                            CommandName="Edit" ImageUrl="/images/edit_desc.gif" OnClick="imgEdit_Click" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <asp:ImageButton ID="imgDelete" runat="server" CommandArgument="<%# Eval(QLK.Database.Columns.SupplierID) %>"
                            CommandName="Delete" ImageUrl="/images/delete.over.gif" OnClick="imgDelete_Click" />                            
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Check"></asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
